home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 076-100 / scopedisk94 / finish / finish.doc < prev    next >
Encoding:
Text File  |  1995-03-19  |  2.8 KB  |  63 lines

  1.  
  2.  
  3.                     Finish command version 1.2             7/10/87
  4.                         by Mark Wolfskehl
  5. ----------------------------------------------------------------------------
  6.  
  7.      Hate that crunching noise your floppy drive makes when it multitasks?
  8. Ever wish you could stop drive multitasking in your startup-sequence and
  9. improve its performance?  Well, now there's an easy solution to the problem:
  10. the Finish command. The format of the command is as follows:
  11.  
  12.                finish <drive #>
  13.  
  14.                     or
  15.  
  16.                finish
  17.  
  18. The command will pause the current CLI until disk activity on the floppy drive
  19. indicated by <drive #> stops. Accepted parameters are the numbers 0 , 1 
  20. and 2. Therefore, finish 1 will wait until activity on DF1: ends. If you type
  21. finish with no parameter, DF0: is assumed. If you happen to forget the syntax
  22. of the command, finish ? is available.  For the intended results, the finish
  23. command should not have to load up from the same drive you are checking.
  24. I suggest copying the command into RAM:C first. For instance, in your
  25. startup-sequence you would start out with something like:
  26.  
  27.               makedir ram:c
  28.               path ram:c
  29.               copy c:finish ram:c
  30.               finish
  31.  
  32. After I have finish loaded into RAM:C, I put it after every command. This
  33. eliminates A LOT of the disk crunching sounds that occur during a long
  34. startup-sequence. If you don't need the command after your startup,
  35. you can use delete ram:c/finish as your last command.  Although this
  36. command eliminates a lot of drive multitasking, it doesn't eliminate it all.
  37. The rest is probably due to the execute command's use of the t directory.
  38.  
  39.      C programmers, the Lattice C source code is provided so that you can
  40. use the finish() function in your own programs. The format is:
  41.  
  42.            error = finish ( drive );
  43.  
  44. Where drive is an int between 0 and 2, and error is also an int which
  45. is zero if the call was successful and nonzero if there was an error.
  46. The val() function is not required by finish() and is called only by main().
  47.  
  48. ----------------------------------------------------------------------------
  49.  
  50.      If you find this program helpful, distribute it at will. I won't take 
  51. you to court if you happen to find someone who will actually pay you for 
  52. this program, and you can use the finish() function in public domain and 
  53. commercial programs.  I don't expect this program to cause any damage to 
  54. your equipment, but if it does don't come crying to me. I make no guarantees 
  55. whatsoever.
  56.  
  57. -----------------------------------------------------------------------------
  58.  
  59. NOTE: Look for version 2.1 which will allow you to vary the efficiency
  60. of the command for specific situations. The current arrangement (v1.2)
  61. is designed with the average startup-sequence in mind.
  62.  
  63.